package com.woniu.mapper;

import com.woniu.entity.Users;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Param;

/**
* @author 26289
* @description 针对表【users(用户表)】的数据库操作Mapper
* @createDate 2025-09-05 12:06:52
* @Entity com.woniu.entity.Users
*/
public interface UsersMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Users record);

    int insertSelective(Users record);

    Users selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Users record);

    int updateByPrimaryKey(Users record);
    // 新增：支持用户名/手机/邮箱任一登录账号
    Users selectByAccount(@Param("account") String account);

    Users findByUsername(String username);

}
